/**
 * 使用vue插件注册项目中全局组件
 * vue插件语法：{
 *   install(Vue) {
 *    // 注册全局组件、指令、方法、过滤器
 * }
 * }
 */
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './Uploading'
import ScreenFull from './ScreenFull'
import Lang from './Lang'
export default {
  install(Vue) {
    // 注册全局组件语法：Vue.component('组件的标签名', 导入的组件对象)
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('UploadImg', UploadImg)
    Vue.component('ScreenFull', ScreenFull)
    Vue.component('Lang', Lang)
    // 注册全局方法：Vue.prototype.全局方法名 = () => {}
    Vue.prototype.$tian = () => {
        alert('我是小田')
    }
  }
}